package main 

import (
	"fmt"
	"strings"
)

func main(){
	str := "The quick broen fox jumps over the lazy dog"
	sl := strings.Fields(str)
	fmt.Printf("Splitted in slic: %v\n", sl)
	for _, val := range sl {
		fmt.Printf("%s - ", val)
	}
	fmt.Println()
	str2 := "GO1|The ABC of Go|25"
	s12 := strings.Split(str2,"|")
	fmt.Printf("Splitted in slice: %v\n", s12)
	for _, val := range s12 {
		fmt.Printf("%s - ",val)
	}
	fmt.Println()
	str3 := strings.Join(s12,";")
	fmt.Printf("s12 joined by ;: %s\n", str3)
}